import {Component, OnInit} from '@angular/core';
import {HttpClient} from '@angular/common/http';

@Component({
  selector: 'app-user-favorite',
  templateUrl: './user-favorite.component.html',
  styleUrls: ['./user-favorite.component.css']
})
export class UserFavoriteComponent implements OnInit {

  records: any;
  constructor(private http: HttpClient) {
    this.http.get('/movie/user/favorite/records').subscribe(res => this.records = res);
  }

  ngOnInit() {
  }

}
